#include <QtGui>
#include <QMessageBox>
#include <iostream>
#include "../../include/gui_qt_demo/uiInclude/tabNavPath.h"
using namespace Qt;

TabNavPath::TabNavPath()
{
  ui.setupUi(this); //
  init();
}

TabNavPath::~TabNavPath() {}

void TabNavPath::init(){
  initUi();
  connect();
}
void TabNavPath::initUi(){
  tab_ = new QWidget();
  QVBoxLayout * layout = new QVBoxLayout(tab_);//铺满布局
  this->setSizePolicy(QSizePolicy::Preferred,QSizePolicy::Preferred);//铺满布局
   layout->addWidget(this);
   tab_->setLayout(layout);
}

void TabNavPath::connect(){ 
  //QObject::connect(ui.btn_add, SIGNAL(clicked()), this, SLOT(add_action_slot()));
}

void TabNavPath::add_action_slot(){
/*
   Action_data_ui *action = new Action_data_ui(ui.listWidget);

   action->setIndex(singleData::GetSingleData()->add_action_data(action->data_));
   

   QListWidgetItem *ITEM = new QListWidgetItem();
   QSize size = ITEM->sizeHint();
   ITEM->setSizeHint(QSize(size.width(), 50));
   ui.listWidget->addItem(ITEM);
   action->setSizeIncrement(size.width(), 50);
   ui.listWidget->setItemWidget(ITEM, action);
   //std::cout<<"size:"<<singleData::GetSingleData()->action_data_vec_.size()<<std::endl;
   */
}

void TabNavPath::dealData(){

}


